package tt.lab.pmbok.dto;

import java.util.ArrayList;
import java.util.List;

public class ArtifactTemplateDTO {
	private int id;
	private String name;
	private List<ArtifactAttributeDTO> attributes = new ArrayList<ArtifactAttributeDTO>();
	
	
	public ArtifactTemplateDTO(int id, String name) {
		this.id = id;
		this.name = name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<ArtifactAttributeDTO> getAttributes() {
		return attributes;
	}
	public void setAttributes(List<ArtifactAttributeDTO> attributes) {
		this.attributes = attributes;
	}
	
	public void addAttribute(ArtifactAttributeDTO artifactAttributeDTO){
		this.getAttributes().add(artifactAttributeDTO);
	}

}
